package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Companion;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.CompanionQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface ICompanionService {

    /**wq
     * 结伴列表页面
     * @param qo
     * @return
     */
    PageInfo<Companion> query(CompanionQueryObject qo);

    /**
     * 根据id查内容
     * @param companionId
     * @return
     */
    Companion selectById(Long companionId);


    /**
     * 保存或更新结伴
     * @param companion
     */
    void saveOrUpdate(Companion companion);

}
